package org.yate.oa.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.CacheNamespace;
import org.springframework.stereotype.Repository;
import org.yate.oa.dao.IBaseMapperDao;
import org.yate.oa.model.MessageEntity;

@Repository(value = "messageMapper")
@CacheNamespace(size = 512)
public interface MessageMapper extends IBaseMapperDao<MessageEntity, Integer> {

	List<MessageEntity> getEntitiesBy(Integer tid);

	List<MessageEntity> getNewEntitiesBy(Integer tid);

	void batchDelete(Integer tid);

}
